package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements java.io.Serializable {

    private static final long serialVersionUID = -3136732536584933873L;

    private ObjectId id; //主键id

    private Long created; //创建时间
    private Long userId;//创建人id
    private Long receiverId;//接收人id
    private String voiceUrl; //视频文件，URL
    private Integer status=1; //创建状态为1，被接受改为0
}
